package com.csun.cmny.provider.service;

import com.csun.cmny.base.dto.LoginAuthDto;
import com.csun.cmny.core.support.IService;
import com.csun.cmny.provider.model.domain.DmcCsunBodyGroup;
import com.csun.cmny.provider.model.dto.bodysensor.BodyGroupDto;
import com.csun.cmny.provider.model.dto.bodysensor.BodyGroupQueryDto;
import com.csun.cmny.provider.model.vo.csunbody.BodyGroupVo;

import java.util.List;

/**
 * @Auther: chisj chisj@foxmal.com
 * @Date: 2020-09-22 15:52
 * @Description:
 */
public interface DmcCsunBodyGroupService extends IService<DmcCsunBodyGroup> {

    /**
     * save dmc csun body group
     *
     * @param bodyGroupDto  the body group dto
     * @param loginAuthDto  the login auth dto
     *
     * @return  the int.
     */
    Integer save(BodyGroupDto bodyGroupDto, LoginAuthDto loginAuthDto);

    /**
     * query body group list with page
     *
     * @param bodyGroupQueryDto the body group dto
     *
     * @return the list.
     */
    List<BodyGroupVo> queryListWithPage(BodyGroupQueryDto bodyGroupQueryDto);

    /**
     * delete by id
     *
     * @param id    the id
     *
     * @return  the int.
     */
    Integer deleteById(Long id);
}
